package com.sh.healthtv.app.com.sh.healthtv.obserservice;

import com.sh.healthtv.database.model.CollectionProgram;
import com.sh.healthtv.database.model.HistoryProgram;

import java.util.List;

/**
 * Created by zhouyucheng on 2017/8/10.
 */

public class HisColObserveble extends Observable<HisColObserver> {

    private static HisColObserveble mInstance;

    public static HisColObserveble getInstance() {
        if (mInstance == null) {
            mInstance = new HisColObserveble();
        }
        return mInstance;
    }

    public void getHisList(List<HistoryProgram> list) {
        for (HisColObserver watcher : mObservers) {
            watcher.getHisList(list);
        }
    }

    public void getColList(List<CollectionProgram> list) {
        for (HisColObserver watcher : mObservers) {
            watcher.getColList(list);
        }
    }

    @Override
    public void registerListener(HisColObserver observer) {

    }

    @Override
    public void unregisterListener(int index) {

    }

    @Override
    public void unregisterAllListener() {

    }
}
